package com.qhhc.hospital.entity;

public class Bed {
    private Integer bId;
    private Integer pId;
    private Integer bState;
    private String bStart;
    private Integer dId;
    private String bReason;
    private Integer version;

    public Bed() {}

    public Bed(Integer bId, Integer pId, Integer bState, String bStart, Integer dId, String bReason, Integer version) {
        this.bId = bId;
        this.pId = pId;
        this.bState = bState;
        this.bStart = bStart;
        this.dId = dId;
        this.bReason = bReason;
        this.version = version;
    }

    public Integer getBId() {
        return bId;
    }

    public void setBId(Integer bId) {
        this.bId = bId;
    }

    public Integer getPId() {
        return pId;
    }

    public void setPId(Integer pId) {
        this.pId = pId;
    }

    public Integer getBState() {
        return bState;
    }

    public void setBState(Integer bState) {
        this.bState = bState;
    }

    public String getBStart() {
        return bStart;
    }

    public void setBStart(String bStart) {
        this.bStart = bStart;
    }

    public Integer getDId() {
        return dId;
    }

    public void setDId(Integer dId) {
        this.dId = dId;
    }

    public String getBReason() {
        return bReason;
    }

    public void setBReason(String bReason) {
        this.bReason = bReason;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Bed{" +
                "bId=" + bId +
                ", pId=" + pId +
                ", bState=" + bState +
                ", bStart='" + bStart + '\'' +
                ", dId=" + dId +
                ", bReason='" + bReason + '\'' +
                ", version=" + version +
                '}';
    }
} 